﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AppSCO.Models
{
    public class citaModel
    {
        public pacienteDataModel datosPaciente { get; set; }
        public citaDataModel datosCita { get; set; }
        public citaModel() {
            this.datosPaciente = new pacienteDataModel();
            this.datosCita = new citaDataModel();
        }
    }

    public class pacienteDataModel {
        [Display(Name="CODIGO PACIENTE")]
        public int CODPAC { get; set; }
        [Display(Name = "NOMBRE PACIENTE")]
        public string NOMPAC { get; set; }
        [Display(Name = "APE. PATERNO")]
        public string APEPPAC { get; set; }
        [Display(Name = "APE. MATERNO")]
        public string APEMPAC { get; set; }
        [Display(Name = "DNI")]
        public string DNIPAC { get; set; }
        [Display(Name = "FEC. NACIMIENTO")]
        public string FECNACPAC { get; set; }
        [Display(Name = "TLF. CASA")]
        public string TELCPAC { get; set; }
        [Display(Name = "TLF. CELULAR")]
        public string TELHPAC { get; set; }
        [Display(Name = "CORREO")]
        public string CORPAC { get; set; }
        [Display(Name = "DIRECCION")]
        public string DIRPAC { get; set; }
        [Display(Name = "SIT. REGISTRO")]
        public string SITREG { get; set; }
        [Display(Name = "SEXO")]
        public string SEXPAC { get; set; }
        [Display(Name = "DISTRITO")]
        public int CODDIS { get; set; }
        [Display(Name = "DISTRITO")]
        public List<SelectListItem> listaDistrito { get; set; }
        public pacienteDataModel(){
        this.listaDistrito = this.listaDistrito = new List<SelectListItem>();
        }
    }

    public class citaDataModel {
        [Display(Name = "CODIGO CITA")]
        public int CODCIT { get; set; }
        [Display(Name = "FEC. CITA")]
        public string FECCITA { get; set; }
        [Display(Name = "NUEVA FEC. CITA")]
        public string FECCITA_REPRO { get; set; }
        [Display(Name = "FLG ESTADO")]
        public string FLGEST { get; set; }
        [Display(Name = "SIT. REGISTRO")]
        public string SITREG { get; set; }
        [Display(Name = "HORARIO")]
        public int CODHOR { get; set; }
        [Display(Name = "PACIENTE")]
        public int CODPAC { get; set; }
        [Display(Name = "EMPRESA")]
        public int CODEMP { get; set; }
        [Display(Name = "OCUPACION")]
        public int CODOCU { get; set; }
        [Display(Name = "MAN. ALIMENTOS")]
        public bool MANALI { get; set; }
        [Display(Name = "NUM. DOC. PAGOS")]
        public string NUMDOCPAG { get; set; }
        [Display(Name = "MONTO")]
        public string MONPAG { get; set; }
        [Display(Name = "TIPO PAGO")]
        public string TIPPAG { get; set; }
        [Display(Name = "OCUPACION")]
        public List<SelectListItem> listaOcupacion { get; set; }
        [Display(Name = "EMPRESA")]
        public List<SelectListItem> listaEmpresa { get; set; }
        public List<horarioDataModel> listaHorario { get; set; }


        [Display(Name = "NOMBRE PACIENTE")]
        public string NOMPAC { get; set; }
        [Display(Name = "APE. PATERNO")]
        public string APEPPAC { get; set; }
        [Display(Name = "APE. MATERNO")]
        public string APEMPAC { get; set; }
        [Display(Name = "DNI")]
        public string DNIPAC { get; set; }
        [Display(Name = "FEC. NACIMIENTO")]
        public string FECNACPAC { get; set; }
        [Display(Name = "TLF. CASA")]
        public string TELCPAC { get; set; }
        [Display(Name = "TLF. CELULAR")]
        public string TELHPAC { get; set; }
        [Display(Name = "CORREO")]
        public string CORPAC { get; set; }
        [Display(Name = "DIRECCION")]
        public string DIRPAC { get; set; }
        [Display(Name = "SEXO")]
        public string SEXPAC { get; set; }
        [Display(Name = "HORARIO")]
        public string DESHOR { get; set; }
        [Display(Name = "EMPRESA")]
        public string NOMEMP { get; set; }
        [Display(Name = "OCUPACION")]
        public string NOMOCU { get; set; }
        public citaDataModel()
        {
            this.listaHorario = new List<horarioDataModel>();
            this.listaEmpresa = new List<SelectListItem>();
            this.listaEmpresa = new List<SelectListItem>();  
        }
    }

    public class horarioDataModel {
        public int CODHOR { get; set; }
        public string DESHOR { get; set; }
        public int CUP { get; set; }
        public string DESCUP { get; set; }
    }
}